package com.java;

/**
 * final
 */
public class Final {
    class Inner {
        public int basic = 2;
    }
    
    public final int basic = 1;
    public final Inner inner = new Inner();
    
    public static void main(String[] args) {
        Final ins = new Final();
        
        // 无法将值赋给 final 变量
        // ins.basic = 100;
        // ins.inner = new Final().new Inner();
        
        ins.inner.basic = 200;
    }
}
